// 六合彩投注函数
function lhcTouZhu (form, gameType, lotteryId, ticketId) {
	var params = []
	form.forEach((item, index) => {
		var obj = {}
		var arr = item.split('=')
		if(parseInt(arr[1])) {
			if(parseInt(arr[0])) {
				obj.number = parseInt(arr[0])
			} else {
				obj.number = arr[0]
			}
			obj.amount = JSON.parse(arr[1])
			obj.gameType = gameType
			obj.lotteryId = gameType
			obj.ticketId = ticketId
			obj.lotteryId = lotteryId
			params.push(obj)
		}
	})
	console.log(params)
	return params
}
export default lhcTouZhu